package com.dragon.modules.yuegou.mapper.wallet;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dragon.modules.yuegou.entity.wallet.CardGrantEntity;
import com.dragon.modules.yuegou.model.wallet.CardGrant;
import com.dragon.modules.yuegou.model.wallet.MemberCardGrant;
import com.dragon.modules.yuegou.query.wallet.CardGetQuery;
import com.dragon.modules.yuegou.query.wallet.CardGrantListQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 悦卡发放记录（企业向会员发放悦卡） Mapper接口
 *
 * @author pbuilder generated
 * @date 2019-03-05 11:27:22
 * @version 2.0
 */
@Component("waltCardGrantMapper")
public interface CardGrantMapper extends BaseMapper<CardGrantEntity> {

    /**
     * 查询悦卡发放列表
     * @param page
     * @param query
     * @return
     */
    List<CardGrant> searchGrantList(IPage page, @Param("query") CardGrantListQuery query);

    /**
     * 导出悦卡发放列表
     * @param query
     * @return
     */
    List<CardGrant> exportGrantList(@Param("query") CardGrantListQuery query);

    /**
     * 悦卡获取记录
     * @param page
     * @param query
     * @return
     */
    IPage<MemberCardGrant> searchGetRecord(IPage<MemberCardGrant> page, @Param("query") CardGetQuery query);

    /**
     * 导出悦卡获取记录
     * @param query
     * @return
     */
    List<MemberCardGrant> searchGetRecord(@Param("query") CardGetQuery query);

}
